﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.Infrastructure;
using DLM.Domain.Model;

namespace DLM.Data.EF.CodeFirst.Mapping
{
    public class PartyAlbumMap : EntityTypeConfiguration<PartyAlbum>
    {
        public PartyAlbumMap()
        {
            this.HasKey(t => t.PAID);
            this.ToTable("PartyAlbum");
            this.Property(t => t.PAID).HasColumnName("PAID");
            this.Property(t => t.PartyID).HasColumnName("PartyID");
            this.Property(T => T.Account).HasColumnName("Account").IsUnicode(false).HasMaxLength(30);
            this.Property(t => t.CreateDate).HasColumnName("CreateDate");
            this.Property(t => t.PhotoName).HasColumnName("PhotoName").IsUnicode(true).HasMaxLength(50);
        }
    }
}
